 package com.metaregistrar.jbilling.gui

/**
 * @author SUCCESS\trule
 *
 */

class CustomerTopUpController {
	def springSecurityService
	def authenticationTrustResolver
	
	def index = {

		if (springSecurityService.isLoggedIn()) {
			redirect(controller: "CustomerTopUp", action: "list")
		}
		else {
			redirect(controller: "login", action: "auth")
		}
	}

	def list={
		render(view: "/customerTopUp/list",model:['controllerName':"CustomerTopUp"])
	}
	
	def show={
		int id=params.int('id')
		 render(view: "/customerTopUp/show",model:['id':id])
	}
	
	def add={
		render(view: "/customerTopUp/add",model:['controllerName':"CustomerTopUp"])
	}
	
	def edit={
		render(view: "/customerTopUp/edit",model:['controllerName':"CustomerTopUp"])
	}
	
	def order={
		
	}
}
